<template>
  <div class="hello">
    <img alt="Vue logo" src="../assets/itcast.jpg">
    <h1>首页</h1>
      <h3>订单管理</h3>
    <el-button @click="goOrderList">跳转订单列表</el-button>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  props: {
    msg: String
  },
  methods: {
    goOrderList() {
      // mock 订单数据
      this.$router.push({path: '/orderList'})
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
  margin: 40px 0 0;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
